﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Best.SmartCms.Domain.Common
{
    public class BaseDomain
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]  //设置自增
        public long Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 创建人员
        /// </summary>
        public long? CreatorId { get; set; }

        /// <summary>
        /// 创建人员
        /// </summary>
        [StringLength(50)]
        public string CreatorName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }
        /// <summary>
        /// 修改人员
        /// </summary>
        public long? UpdatorId { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        [StringLength(50)]
        public string UpdatorName { get; set; }

    }


}
